package com.leantech.android.browser.dialog

import android.content.Context
import android.view.WindowManager
import com.leantech.android.browser.R
import com.qmuiteam.qmui.skin.QMUISkinManager
import com.qmuiteam.qmui.widget.dialog.QMUIBaseDialog

class CustomDialog(context: Context) : QMUIBaseDialog(context,R.style.MessageDialogStyle) {
    override fun show() {
        this.setSkinManager(QMUISkinManager.defaultInstance(context))
        window?.apply {
            setLayout(
                WindowManager.LayoutParams.MATCH_PARENT,
                WindowManager.LayoutParams.MATCH_PARENT
            )
            setBackgroundDrawableResource(R.color.transparent)
            addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)
        }
        super.show()
    }
}